//
//  LQFoldButtonCell.m
//  ainkjj
//
//  Created by MAX on 2020/4/2.
//  Copyright © 2020 zhiyiLiu. All rights reserved.
//

#import "LQFoldButtonCell.h"

@implementation LQFoldButtonCell


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setItem:(LQFoldButtonItem *)item {
    _item = item;
    if (self.textAttribute) {
        NSAttributedString *attStr = [[NSAttributedString alloc]initWithString:item.title attributes:self.textAttribute];
        self.textLabel.attributedText = attStr;
    } else {
        self.textLabel.text = item.title;
    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
